package com.huakai.springenv.perf;

import org.springframework.boot.web.servlet.FilterRegistrationBean;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class WebConfig {
    @Bean
    public FilterRegistrationBean testFilterRegistration() {
        FilterRegistrationBean registration = new FilterRegistrationBean(new PressureTestFilter());
        registration.addUrlPatterns("/"); //
        registration.setName("perfFilter");
        return registration;
    }
}
